<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="java.util.logging.Logger"%>

<html>
<head>
<title>Logger.info</title>
</head>
<body>
	<%
		Logger logger = Logger.getLogger(this.getClass().getName());
	%>
	<br>Logger.getLogger.info
	<c:forEach var="counter" begin="1" end="10" step="1">
		<c:set var="myCount" value="${counter-5}" />		
		<c:out value="${myCount}" />
		</br>
		<%
			String message = "counter=" + pageContext.findAttribute("counter") + " myCount="
						+ pageContext.findAttribute("myCount");
				logger.info(message);
				//logger.warning(message);
		%>
	</c:forEach>

	<br> System.out.println
	<c:forEach var="counter" begin="1" end="10" step="1">
		<c:out value="${counter-5}" />
		</br>
		<%
			System.out.println("counter= " + pageContext.findAttribute("counter"));
		%>
	</c:forEach>
</body>
</html>